import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from "./views/org/Department.vue";
import Employee from "./views/org/Employee.vue";
import Menu from "./views/sys/Menu.vue";
import Operation_logs from "./views/sys/Operation_logs.vue";
import DictionaryType from "./views/sys/DictionaryType.vue";
import ShopRegister from "./views/ShopRegister.vue";
import Shop from "./views/org/Shop.vue";
import User from "./views/user/User.vue";
import Role from "./views/sys/Role.vue";
import Permission from "./views/sys/Permission.vue";
import Pet from "./views/pet/Pet.vue";
import Finish from "./views/searchMsg/SearchMasterMsgFinish.vue";
import Pool from "./views/searchMsg/SearchMasterMsgPool.vue";
import ToAudit from "./views/searchMsg/SearchMasterMsgToAudit.vue";
import ToHandle from "./views/searchMsg/SearchMasterMsgTohandle.vue";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        leaf: true,//只有一个节点
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },

    {
        path: '/',
        component: Home,
        name: '导航一',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/main', component: Main, name: '主页', hidden: true },
            { path: '/table', component: Table, name: 'Table' },
            { path: '/form', component: Form, name: 'Form' },
            /*{ path: '/user', component: user, name: '列表' },*/
        ]
    },
    {
        path: '/',
        component: Home,
        name: '导航二',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/page4', component: Page4, name: '页面4' },
            { path: '/page5', component: Page5, name: '页面5' }
        ]
    },


    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-address-card',
        leaf: true,//只有一个节点
        children: [
            { path: '/page6', component: Page6, name: '导航三' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: 'ORG',
        //leaf: true,//只有一个节点
        children: [
            { path: '/department', component: Department, name: '部门' },
            { path: '/employee', component: Employee, name: '员工' },
            { path: '/shop', component: Shop, name: '店铺' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: 'SYS',
        //leaf: true,//只有一个节点
        children: [
            { path: '/menu', component: Menu, name: '菜单' },
            { path: '/role', component: Role, name: '角色' },
            { path: '/operation', component: Operation_logs, name: '操作日志' },
            { path: '/dictionaryType', component: DictionaryType, name: '数据字典' },
            { path: '/permission', component: Permission, name: '权限' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: 'PET',
        //leaf: true,//只有一个节点
        children: [
            { path: '/pet', component: Pet, name: '宠物' },
            { path: '/finish', component: Finish, name: '已完成' },
            { path: '/pool', component: Pool, name: '宠物池' },
            { path: '/toAudit', component: ToAudit, name: '审核' },
            { path: '/toHandle', component: ToHandle, name: '处理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: 'USER',
        //leaf: true,//只有一个节点
        children: [
            { path: '/user', component: User, name: '用户' },
        ]
    },

    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '', 	//不需显示name没有意义
        hidden: true //不需要在菜单显示
    },

    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;